import React from 'react';
import { renderRoutes } from 'react-router-config';
import { HashRouter } from 'react-router-dom';
import { Provider } from 'react-redux'

import routes from './router'
import store from '@/store'
import LwtAppHeader from '@/components/app-header'
import LwtAppFooter from  '@/components/app-footer'

function App() {
  return (
    <Provider store={store}>
      <div className="App">
        <HashRouter>
          <LwtAppHeader />
          {renderRoutes(routes)}
          <LwtAppFooter />
        </HashRouter>
      </div>
    </Provider>
  );
}

export default App;
